body {
  margin-right: 2vw;
  margin-left: 2vw;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto,
  Helvetica Neue, Arial, Noto Sans, sans-serif, Apple Color Emoji, Segoe UI Emoji,
  Segoe UI Symbol, Noto Color Emoji;
}

table {
  width: 100%;
  border-spacing: 10px;
}

td {
  text-align: left;
  font-weight: bold;
}


.headers-grid {
  display: grid;
  grid-template-columns: 3fr 2fr 7fr;
  grid-template-rows: 90px;
  gap: 10px;
  width: 100%;
  height: 100%;
  margin: auto;
}

.headers-grid-item {
  background-color: #dfd8ec;
  padding: 5px 10px;
  border-radius: 4px;
  border: none;
  display: grid;
  align-items: center;
  justify-content: center;
  height: 100%;
}

#description-cell {
  grid-column: 3;
  display: grid;
}

div#App {
  padding-top: 5px;
  display: grid;
  width: 100%;
  height: 100%;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: 1fr 18fr;
  grid-gap: 1rem;
  resize: both;
  overflow: hidden;
}

div#toolbar-section {
  padding-top: 30px;
  display: grid;
  grid-row: 1;
  grid-column: 1 / span 2;
  grid-template-columns: 2fr 2fr 6fr;
  grid-gap: 1rem;
  align-items: center;
}

  #toolbar-section #run-code-btn {
    grid-column: 1;
    height: 40px;
  }

  #toolbar-section #share-code-btn {
    grid-column: 2;
    height: 40px;
  }

  /* input pane */
  div#input-section {
    display: grid;
    grid-column: 1;
    grid-row: 2;
    overflow: hidden;
  }

  #input-section #cell {
    display: grid;
    grid-template-rows: 4% 96%;
    overflow: hidden;
  }

  #input-section #cell #input-cell-title {
    height: 100%;
    grid-row: 1;
    font-weight: bold;
  }

  #input-section #cell #container-program {
    display: grid;
    height: 100%;
  }

  div#output-section {
    display: grid;
    grid-column: 2;
    grid-row: 2;
    grid-template-rows: 30% 60%;
  }

  /* event pane */
  #output-section #event-cell {
    display: grid;
    /* this is double of input-cell-title row
  because we are working with half the space */
    grid-template-rows: 12% 88%;
    grid-row: 1;
    height: 100%;
  }

  #output-section #event-cell #event-cell-title {
    display: grid;
    grid-row: 1;
    font-weight: bold;
  }

  #output-section #event-cell #container-event {
    display: grid;
    grid-row: 2;
    height: 100%;
  }

  /* output pane */
  #output-section #output-cell {
    display: grid;
    grid-template-rows: 6% 94%;
    grid-row: 2;
    height: 100%;
  }

  #output-section #output-cell #output-cell-title {
    display: grid;
    grid-row: 1;
    font-weight: bold;
    height: 50px;
  }

  #output-section #output-cell #container-output {
    display: grid;
    grid-row: 2;
    height: 100%;
  }

/*  BUTTONS */
.btn {
  display: inline-block;
  outline: 0;
  border: none;
  cursor: pointer;
  border-radius: 8px;
  font-size: 13px;
  height: 30px;
  padding: 0 20px;
}

.btn:active {
  box-shadow: 0 4px #666;
  transform: translateY(2px);
}

.btn-primary {
  background-color: #9147ff;
  color: white;
}

.btn-primary:hover {
  background-color: #6a1ae1;
}

.btn-secondary {
  background-color: #0000001a;
  color: #000000;
}

.btn-secondary:hover {
  background-color: #c0bdbd;
}
/* END OF BUTTONS */

/* Portrait and Landscape */
@media only screen
  and (min-width: 200px)
  and (max-width: 1000px) {
    div#App {
        display: grid;
        width: 100%;
        height: 100%;
        /* the app will have multiple rows
        stacking each section on top of each other */
        grid-template-rows: 20vh 10vh 50vh;
        grid-template-columns: 100%;
      }

      div#toolbar-section {
        display: grid;
        grid-row: 1;
        grid-column: 1;
        grid-template-columns: 100%;
        grid-template-rows: repeat(2, 1fr);
      }

      #toolbar-section #run-code-btn {
        display: grid;
        grid-row: 1;
        grid-column: 1;
      }

      #toolbar-section #share-code-btn {
        display: grid;
        grid-row: 2;
        grid-column: 1;
      }

      /* input pane */
      div#input-section {
        display: grid;
        grid-column: 1;
        grid-row: 2;
        overflow: hidden;
      }

      #input-section #cell {
        display: grid;
        grid-column: 1;
        grid-template-rows: 23% 77%;
        overflow: hidden;
      }

      #input-section #cell #input-cell-title {
        height: 100%;
        grid-column: 1;
        grid-row: 1;
      }

      #input-section #cell #container-program {
        display: grid;
        height: 100%;
      }

      div#output-section {
        display: grid;
        grid-row: 4 / 5;
        grid-column: 1;
        grid-template-rows: 50% 50%;
        overflow: hidden;
      }

      /* event pane */
      #output-section #event-cell {
        display: grid;
        grid-template-rows: 20% 80%;
        grid-row: 1;
        height: 100%;
      }

      #output-section #event-cell #event-cell-title {
        display: grid;
        grid-row: 1;
      }

      #output-section #event-cell #container-event {
        display: grid;
        height: 100%;
      }

      /* output pane */
      #output-section #output-cell {
        display: grid;
        grid-template-rows: 20% 80%;
        grid-row: 2;
        height: 100%;
      }

      #output-section #output-cell #output-cell-title {
        display: grid;
        grid-row: 1;
      }

      #output-section #output-cell #container-output {
        display: grid;
        grid-row: 2;
        height: 100%;
      }

      .btn-primary {
        display: inline-block;
        outline: 0;
        border: none;
        cursor: pointer;
        border-radius: 4px;
        font-size: 13px;
        height: 30px;
        background-color: #9147ff;
        color: white;
        padding: 0 20px;
        align-items: center;
      }

      .btn-primary:hover {
        background-color: #772ce8;
      }

      .btn-secondary {
        display: inline-block;
        outline: 0;
        border: none;
        cursor: pointer;
        border-radius: 4px;
        font-size: 13px;
        height: 30px;
        background-color: #0000001a;
        color: #000000;
        padding: 0 20px;
        align-items: center;
      }

      .btn-secondary:hover {
        background-color: #dcdcdc;
      }
}
